"""
SHA256加密
"""
import hashlib


def sha256hex(data):
    sha256 = hashlib.sha256()
    sha256.update(data.encode())
    res = sha256.hexdigest()
    return res


if __name__ == "__main__":
    sha256hex("yang8miao")
